package cn.vendpay.com.client;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;


/**
 * YOLO客户端
 * @author Eleven
 */
@FeignClient(name = "yolo-service", url = "http://localhost:5000")
public interface YoloClient {

    /**
     * 开始扫描
     * @param duration 扫描多少秒
     * @return
     */
    @GetMapping("/scan")
    Map<String, Integer> startScan(@RequestParam("duration") int duration);
}
